const char wifi[] PROGMEM = R"rawliteral(
If you are connected successfully, you will see your IP adress below:
%WIFIIP%
This sensor board provides the following APIs that you can use GET-Method to fetch the response. Most of the APIs return a JSON as a response body. The parameters' value is indicated in blue. Besides the Wi-Fi direct connection, you can also connect this sensor board to your WLAN by opening the http://192.168.4.1/connectWifi in your browser and following the instruction on the website.
| Name of the feature | API | Respose example |
| Connect the board to WLAN/Wifi | /setWifi?ssid=MyWifiName&pswd=WifiPassword | A website |
| Turn on/off the white LEDs | /setWhite?state=on | {"success":"true"} |
| Turn on/off the UV LEDs | /setUV?state=on | {"success":"true"} |
| Change the brightness of the white LEDs [0 to 1023] | /setWhite?level=255 | {"success":"true"} |
| Change the brightness of the UV LEDs [0 to 1023] | /setUV?level=255 | {"success":"true"} |
| Change the colorimetric sensor frequency scaling [2, 20, 100] | /setScal?scaling=20 | {"success":"true"} |
| Get the colorimetric sensor frequency data | /getRGB | {"value":{"R":45,"G":65,"B":102},"success":"true"} |
| Get the sensor board's IP addresses | /getIP | {"direct":"192.168.4.1","lan":"192.168.1.101","success":"true"} |
| Factory reset and clear all settings | /factoryreset | No response |